<!DOCTYPE html>
<html lang="zh">

<head>
  <%=require('html-loader!./layout/head-common.html') %>
    <title>青树书城</title>

</head>

<body>
  <%=require('html-loader!./layout/nav.html') %>
    <main class="container">
      <!--轮播导航-->
      <div id="index-carousel" class="carousel slide indexNavSlide d-lg-block d-none" data-ride="carousel">
        <div class="menuContent">
          <div class="navSlideItem" data-id="1">
            <a href="./category.html">
              <span>全部书籍</span>
              <span class="fa fa-chevron-right"></span>
            </a>
          </div>
          <div class="navSlideItem" data-id="2">
            <a href="./category.html?categoryId=1&content=心理学入门">
              <span>心理学入门</span>
              <span class="fa fa-chevron-right"></span>
            </a>
          </div>
          <div class="navSlideItem" data-id="3">
            <a href="./category.html?categoryId=2&content=青少年心理学">
              <span>青少年心理学</span>
              <span class="fa fa-chevron-right"></span>
            </a>
          </div>
          <div class="navSlideItem" data-id="4">
            <a href="./category.html?categoryId=3&content=应用心理学">
              <span>应用心理学</span>
              <span class="fa fa-chevron-right"></span>
            </a>
          </div>
          <div class="navSlideItem" data-id="5">
            <a href="./category.html?categoryId=4&content=认知心理学">
              <span>认知心理学</span>
              <span class="fa fa-chevron-right"></span>
            </a>
          </div>
          <div class="navSlideItem" data-id="6">
            <a href="./category.html?categoryId=5&content=生理心理学">
              <span>生理心理学</span>
              <span class="fa fa-chevron-right"></span>
            </a>
          </div>
          <div class="navSlideItem" data-id="7">
            <a href="./category.html?categoryId=6&content=社会心理学">
              <span>社会心理学</span>
              <span class="fa fa-chevron-right"></span>
            </a>
          </div>
        </div>
        <div class="controlers">
          <ol class="carousel-indicators">
            <li data-target="#index-carousel" data-slide-to="0" class="active"></li>
            <li data-target="#index-carousel" data-slide-to="1"></li>
            <li data-target="#index-carousel" data-slide-to="2"></li>
          </ol>
          <a class="carousel-control-prev" href="#index-carousel" role="button" data-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
          </a>
          <a class="carousel-control-next" href="#index-carousel" role="button" data-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
          </a>
        </div>
        <div class="carousel-inner">
          <div class="carousel-item active">
            <div class="innerPic innerPic1"></div>
            <div class="carousel-caption">
            </div>
          </div>
          <div class="carousel-item">
            <div class="innerPic innerPic2"></div>
            <div class="carousel-caption">
            </div>
          </div>
          <div class="carousel-item">
            <div class="innerPic innerPic3"></div>
            <div class="carousel-caption">
            </div>
          </div>
        </div>
      </div>
      <div id="indexList" class="d-lg-none d-block container">
        <a href="#" class="indexNavBtn">全部书籍</a>
        <a href="#" class="indexNavBtn">心理学入门</a>
        <a href="#" class="indexNavBtn">青少年心理学</a>
        <a href="#" class="indexNavBtn">应用心理学</a>
        <a href="#" class="indexNavBtn">认知心理学</a>
        <a href="#" class="indexNavBtn">生理心理学</a>
        <a href="#" class="indexNavBtn">社会心理学</a>
      </div>
      <div class="card container border-0">
        <div class="card-title my-3 d-flex justify-content-between align-items-center">
          <p class="title">
            <span class="cardTitleFirst">推</span> 荐书籍</p>
          <a href="#" class="btn text-danger">更多</a>
        </div>
        <div class="card-body container">
          <div class="row" id="indexListContainer">
          </div>
        </div>
      </div>
    </main>
    <%=require('html-loader!./layout/footer.html') %>
      <script>
        $(".nav-item").eq(0).addClass("active")
      </script>
</body>

</html>